#ifndef WELDTOOLVIEW_H
#define WELDTOOLVIEW_H

#include <QWidget>
#include <QTimer>
//class CommunicateNormalDelegate;
#include "../CommunicateDelegate/communicatenormaldelegate.h"
namespace Ui {
class WeldToolView;
}

class WeldToolView : public QWidget
{
    Q_OBJECT

public:
    explicit WeldToolView(CommunicateNormalDelegate *communicateNormalDelegateIn,QWidget *parent = 0);
    ~WeldToolView();
    void showDialog(bool isShow);
private slots:
    void timeWork();
    void on_pushButton_feedWire_pressed();

    void on_pushButton_feedWire_released();

    void on_pushButton_withdrawWire_pressed();

    void on_pushButton_withdrawWire_released();

    void on_pushButton_gasOn_pressed();

    void on_pushButton_gasOn_released();

    void on_pushButton_changeVirtualWeld_clicked();

    void on_pushButton_changeCollisionCheck_clicked();

    void on_checkBox_isEnableOperation_clicked(bool checked);

private:
    Ui::WeldToolView *ui;
    QTimer *updateTimer;
    CommunicateNormalDelegate *communicateNormalDelegate;
    WeldCraftStatusInfo infoOut;
};

#endif // WELDTOOLVIEW_H
